<html><head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>DrawVectorParagraph</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">DrawVectorParagraph()</font></b></p>
<p><b>语法</b></p><blockquote>
<font color="#3A3966"><b>DrawVectorParagraph</b></font>(Text$, Width.d, Height.d [, Flags])</blockquote>

</blockquote>
<b>概要</b><br><blockquote>



Draw a paragraph of text (multiple lines) within a given bounding box 
with automatic layout for linebreaks. If the text does not fit the defined 
box, it will be cut at the end. The font to use 
can be set with <a href="vectorfont.html">VectorFont()</a>. 

 

</blockquote><p><b>参数</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Text$</i></td>
<td width="90%"> 
 
Specifies the text to draw. 

 

</td></tr>
<tr><td><i>Width.d</i></td>
<td> 
 
Specifies the width for the paragraph. Line breaks will be added if text is longer 
than the specified width. 

 

</td></tr>
<tr><td><i>Height.d</i></td>
<td> 
 
Specifies the maximum height for the paragraph. If the text does not fit within this 
height it will be cut. The required height for a paragraph can be calculated with 
<a href="vectorparagraphheight.html">VectorParagraphHeight()</a>. 

 

</td></tr>
<tr><td><i>Flags (可选)</i></td>
<td> 
 
Can be one of the following values: 
 
<pre><font face="Courier New, Courier, mono"size="2">  <font color="#924B72">#PB_VectorParagraph_Left</font>  : The paragraph is aligned to the left (default)
  <font color="#924B72">#PB_VectorParagraph_Right</font> : The paragraph is aligned to the right
  <font color="#924B72">#PB_VectorParagraph_Center</font>: The paragraph is centered
  <font color="#924B72">#PB_VectorParagraph_Block</font> : Lines in the paragraph are spaced to form a block of text (not supported on Windows)
</font></pre>

</td></tr>
</table>
</blockquote><p><b>返回值</b></p><blockquote>
无.


</blockquote><p><b>示例</b></p><blockquote>


<pre><font face="Courier New, Courier, mono"size="2">  <b><font color="#3A3966">If</font></b> <font color="#3A3966">OpenWindow</font>(0, 0, 0, 400, 250, "VectorDrawing", <font color="#924B72">#PB_Window_SystemMenu</font> | <font color="#924B72">#PB_Window_ScreenCentered</font>)
<font color="#3A3966">    CanvasGadget</font>(0, 0, 0, 400, 250)
<font color="#3A3966">    LoadFont</font>(0, "Times New Roman", 20)
    
    <b><font color="#3A3966">If</font></b> <font color="#3A3966">StartVectorDrawing</font>(<font color="#3A3966">CanvasVectorOutput</font>(0))
    
      Text$ = "Every drawing output has a default unit of measurement. The default unit is pixels " +
              "for screen or raster image outputs and points for printer or vector image outputs. " +
              "It is however possible to select a different unit of measurement for the output when " +
              "creating it with the ImageVectorOutput(), PrinterVectorOutput() or similar function."
              
<font color="#3A3966">      VectorFont</font>(<font color="#3A3966">FontID</font>(0), 18)
      
<font color="#3A3966">      MovePathCursor</font>(25, 25)
<font color="#3A3966">      DrawVectorParagraph</font>(Text$, 350, 200)
              

<font color="#3A3966">      StopVectorDrawing</font>()
    <b><font color="#3A3966">EndIf</font></b>
    
    <b><font color="#3A3966">Repeat</font></b>
      Event =<font color="#3A3966"> WaitWindowEvent</font>()
    <b><font color="#3A3966">Until</font></b> Event = <font color="#924B72">#PB_Event_CloseWindow</font>
  <b><font color="#3A3966">EndIf</font></b>
</font></pre>

<p><img src="../HelpPictures/drawvectorparagraph.png"></p>

</blockquote><p><b>参阅</b></p><blockquote>

<a href="vectorparagraphheight.html">VectorParagraphHeight()</a>, <a href="drawvectortext.html">DrawVectorText()</a>, <a href="addpathtext.html">AddPathText()</a>, <a href="vectorfont.html">VectorFont()</a> 

</Blockquote><p><b>已支持操作系统 </b><Blockquote>所有</Blockquote></p><center>&lt;- <a href=drawvectorimage.html>DrawVectorImage()</a> - <a href="index.html">VectorDrawing Index</a> - <a href="drawvectortext.html">DrawVectorText()</a> -&gt;<br><br>


</body></html>